<?PHP

$post=$_POST;
$files=$_POST;
$content_id=$_POST['content_id'];
$content_id=$_GET['content_id'];

if($_POST['cmd']=='add' && !empty($_FILES['media_1']))
{
	$media =& new media;
	$media->post=$_POST;
	$media->files=$_FILES;

	$media->multiple=TRUE;
	$media->add_image();
	
}


?>